home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / SCSI Samples 1.0 / SCSI Async Sample 06⁄15 ƒ / Src / DialogUtilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-16  |  1.6 KB  |  93 lines  |  [TEXT/KAHL]

  1. /*                                    DialogManager.c                                */
  2. /*
  3.  * DialogManager.c
  4.  * Copyright © 1993 Apple Computer Inc. All rights reserved.
  5.  *
  6.  * Simple subroutines to make Modal Dialogs a pleasant experience for the
  7.  * entire family.
  8.  */
  9. #ifndef THINK_C                /* MPW includes            */
  10. #include <Errors.h>
  11. #include <Script.h>
  12. #include <Types.h>
  13. #include <Files.h>
  14. #include <Resources.h>
  15. #include <QuickDraw.h>
  16. #include <Fonts.h>
  17. #include <Events.h>
  18. #include <Windows.h>
  19. #include <ToolUtils.h>
  20. #include <Memory.h>
  21. #include <Menus.h>
  22. #include <Lists.h>
  23. #include <Printing.h>
  24. #include <Dialogs.h>
  25. #include <StandardFile.h>
  26. #endif
  27.  
  28. #define kActiveButton        0
  29. #define kCheckedButton        1
  30. #define kDisabledButton        255
  31.  
  32. void
  33. SelectCheckBox(
  34.         DialogPtr            theDialog,
  35.         short                itemNumber,
  36.         Boolean                *value
  37.     );
  38. void
  39. SetCheckBox(
  40.         DialogPtr            theDialog,
  41.         short                itemNumber,
  42.         Boolean                value
  43.     );
  44. void
  45. SelectRadioButton(
  46.         DialogPtr            theDialog,
  47.         short                first,
  48.         short                last,
  49.         short                item,
  50.         short                *value        /* Has/gets zero to last-1    */
  51.     );
  52. void
  53. SetRadioButtons(
  54.         DialogPtr            theDialog,
  55.         short                first,
  56.         short                last,
  57.         short                value
  58.     );
  59. void
  60. SetDialogButton(
  61.         DialogPtr            theDialog,
  62.         short                item,
  63.         short                value
  64.     );
  65. short
  66. GetDialogButton(
  67.         DialogPtr            theDialog,
  68.         short                item
  69.     );
  70. void
  71. EnableDialogItem(
  72.         DialogPtr            theDialog,
  73.         short                item,
  74.         Boolean                enableItem
  75.     );
  76. signed long
  77. GetDialogValue(
  78.         DialogPtr            theDialog,
  79.         short                item
  80.     );
  81. void
  82. SetDialogValue(
  83.         DialogPtr            theDialog,
  84.         short                item,
  85.         signed long            value
  86.     );
  87. void
  88. SetDialogText(
  89.         DialogPtr            theDialog,
  90.         short                item,
  91.         ConstStr255Param    text
  92.     );
  93.